package com.alibaba.algo.xml;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "Resource")
public class ResourceXML implements Serializable {

    @XmlElement(name = "id")
    private Long id;

    @XmlElement(name = "resourceCode")
    private String resourceCode;

    @XmlElement(name = "resourceType")
    private Integer resourceType;

    @XmlElement(name = "resourceName")
    private String resourceName;

    @XmlElement(name = "parentId")
    private Long parentId;

    @XmlElement(name = "sort")
    private int sort;

    @XmlElement(name = "appCode")
    private String appCode;

    @XmlElement(name = "isDeleted")
    private String isDeleted;

    @XmlElement(name = "menuFlag")
    private String menuFlag;

    @XmlElement(name = "path")
    private String path;

    @XmlElement(name = "creator")
    protected String creator;

    @XmlElement(name = "gmtCreated")
    protected String gmtCreated;

    @XmlElement(name = "modifier")
    protected String modifier;

    @XmlElement(name = "gmtModified")
    protected String gmtModified;

    @XmlElement(name = "resourceActions")
    private List<ResourceActionXML> resourceActions;

}
